﻿using FTBS.Models.DAO;
using FTBS.Models.Entities;
using FTBS.Models.Entities.Concert;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace FTBS.Models.BLO
{
    public class AdminBLO
    {
        private AdminDAO _adminDao = new AdminDAO();

        /// <summary>
        /// Delete all showtime, schedule and ticket have date and time over the current date and time
        /// </summary>
        /// <param name="theater"></param>
        /// <author>VuongVT</author>
        public AdminHomeInfoConcertEntity DeleteAllShowTimeAndScheduleAndTicketOverCurrentDay(Theater theater)
        {
            return _adminDao.DeleteAllShowTimeAndScheduleAndTicketOverCurrentDay(theater);
        }

        /// <summary>
        /// Get list Schedule have to create ticket.
        /// If schedule have Date == current day + deadline for create ticket => Get this schedule
        /// </summary>
        /// <param name="theater"></param>
        /// <returns></returns>
        /// <author>VuongVT</author>
        public AdminHomeInfoConcertEntity GetListHaveToCreateTicket(Theater theater)
        {
            return _adminDao.GetListHaveToCreateTicket(theater);
        }

        /// <summary>
        /// Delete all promotions have ToDay over current day
        /// </summary>
        /// <returns></returns>
        /// <author>VuongVT</author>
        public AdminHomeInfoConcertEntity DeleteAllPromotionOverDay()
        {
            return _adminDao.DeleteAllPromotionOverDay();
        }

        /// <summary>
        /// Get list payment have to confirm
        /// </summary>
        /// <param name="theater"></param>
        /// <returns></returns>
        public AdminHomeInfoConcertEntity GetListPaymentHaveToConfirm()
        {
            return _adminDao.GetListPaymentHaveToConfirm();
        }

    }
}